import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
import * as echarts from "echarts";
import ElementPlus from 'element-plus'
import Antd from 'ant-design-vue';
import 'element-plus/dist/index.css'
import '@/assets/css/antd.css';
import '@/assets/css/style.css';
import 'echarts-wordcloud';
import 'echarts-liquidfill'

const app = createApp(App);
// app.config.productionTip = false;
app.config.globalProperties.$echarts = echarts
app.directive('test', {
    mounted (el, binding) {
        const mouse = document.createElement('div');
        mouse.className = 'test'
        el.parentNode.replaceChild(mouse, el);
        mouse.appendChild(el);
    }
})

app.use(router)
    .use(ElementPlus)
    .use(Antd)
    .mount('#app')
